571 questions
0 votes
1 answer
111 views
Clojure mutant – can't kill a surviving mutant in binary search
I'm writing a classic binary search function in Clojure and testing it with the mutant mutation testing library. My tests work fine in terms of correctness, but mutation testing reports one surviving ...
1 vote
1 answer
72 views
how to pass data to redux toolkit mutation
In component, const [ updateproductapi ] = useUpdateProductMutation() formdata.append("product_name", product.product_name); formdata.append("product_price", product.product_price);...
0 votes
1 answer
115 views
Error when using an external provider for mutation with gatekeeper
I am using version 3.17.1 of gatekeeper on my GKE cluster. I am using an "Assign" to mutate image containers to my desired image. I am using an external provider for that. My external ...
0 votes
1 answer
80 views
Why does mutation through a trait object fail but mutation through a function pointer work?
I have a Rust program with two versions of structs and their method implementations. The first version uses a function pointer, while the second uses a boxed trait object. Here is the code: pub struct ...
0 votes
0 answers
153 views
Why mutation observer is not working for some pages once page is fully loaded - Chrome Extension
Puzzled by this problem. I am trying to execute this simple code which just checks the changes of attributes on my specific created element. It works fine when the page is in loading state but once I ...
1 vote
0 answers
32 views
Can the logic I want be completed using React's useMutation?
const myRequest = (req: ReqMyParam) => { return postFetchData<ResMyParam, ReqMyParam>( myRoutes.myApi, req, ) } export const useMyApiMutation = ( onSuccess: (res: ...
0 votes
1 answer
42 views
Mutation graphql calling from react
When I call from client to server, 400 Error occured. I completely don't know where should I check. When I called just "id" then, it works. however, when I added a more parameter "...
0 votes
1 answer
2k views
Run method when variable changes in lwc
I simply want to run a method when a variable changes. I think @track monitors the changes, but how do I run this method when it does? How do I write this? @track displayedData <---when this ...
0 votes
1 answer
2k views
Unexpected mutation of Prop
I am passing an apiStepNumber prop from the parent component to the child component and using it in the child component as a v-model value NOTE: Code Snippets will not work. Please avoid running them....
0 votes
1 answer
199 views
Graphql is throing an error: Field error in object 'hepatitisLabConditionGroupInput' on field '$.conditionIds': rejected value [null];
I am looking a way to pass an Int array to a GraphQL mutation. I am not sure what I am doing incorrect here.I am getting this error: Field error in object 'hepatitisLabConditionGroupInput' on field '$...
0 votes
2 answers
507 views
Mutating an array in a store solidjs mutates the whole array
I just want to be sure. I have this store in solidjs: type StoreState = { selectionByCondition: Array<{ condition: BogoCondition; cardState: Array<{ handle: string; variant:...
2 votes
1 answer
218 views
Is a function that makes local use of mutability pure?
I'm a beginner to Scala, FP, and programming in general. I'm trying to understand when something can be called proper FP. If we say that functional programming is about chaining functions together so ...
-1 votes
1 answer
111 views
Mutation threshold in PITest: is there a way to set a default average threshold globally across multiple projects or modules?
I now have set mutation configuration on the main project pom and I want it to be calculated as an average instead of each module separately. Is there a way to do that? <mutationThreshold>80</...
0 votes
2 answers
94 views
Stock Mutation with Mysql
I have mutation table that stores transactions: M_Date Item_ID Qty 2024-01-02 B-0001 4 2024-01-03 B-0001 2 2024-01-03 B-0001 -1 2024-01-04 B-0001 -2 2024-01-03 B-0002 5 2024-01-03 B-0002 -2 2024-01-04 ...
-1 votes
1 answer
127 views
Detecting Style Changes and Getting Their Respective Values
I am trying to detect style changes in the HTML tag and get the resulting changes. But most the tutorials usually just show how to detect the change but not how to extract the information about the ...